import React from 'react';
import {SectionRoomsStyle} from "./style";
import RoomItem from "../roomItem";

const SectionRooms = (props) => {

    const {roomList} = props;

    return (
        <SectionRoomsStyle>
            {
                roomList?.map((room) => (
                    <RoomItem itemData={room} key={room.id} />
                ))
            }
        </SectionRoomsStyle>
    );
};

export default SectionRooms;